package cn.safekeeper.guide.admin.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户登录对象
 */
@Data
public class LoginBody implements Serializable {
    private static final long serialVersionUID = 3302572749969655271L;

    @Size(min = 2, max = 20)
    @NotBlank(message = "请输入用户名")
    private String username;

    @Size(min = 6, max = 20)
    @NotBlank(message = "请输入密码")
    private String password;

    @NotBlank(message = "请输入验证码")
    private String code;

    @NotBlank(message = "uuid不能为空")
    private String uuid;
}
